#include <stdio.h>

int main()
{
    int a = 0;
    scanf_s("%d", &a);
    if (a % 5 == 0)
    {
        printf("Yes\n");
    }
    else
    {
        printf("No\n");
    }
    return 0;
}